// 注册全局组件的注册
/**
 * 插件形式 注册全局公共组件
 * vue插件写法 {install(Vue){}}
 */
import PageTools from './PageTools'
import UploadExcel from './UploadExcel'
import UploadImg from './UploadImg'
import ScreenFull from './ScreenFull'
import Lang from './Lang'

const components = [Lang, PageTools, UploadExcel, UploadImg, ScreenFull]

export default {
  /**
    *@PARAM {* } vue
    */
  install (Vue) {
    // 注册全局组件
    components.forEach(cp => {
      // cp.name作为批量注册的插件进行
      Vue.component(cp.name, cp)
    })
  }
}
